package cn.rocksolid.proxy;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@ComponentScan({"cn.rocksolid.proxy", "cn.rocksolid.sport"})
@MapperScan("cn.rocksolid.sport.*.dao")
@SpringBootApplication
@EnableAspectJAutoProxy(exposeProxy = true, proxyTargetClass = true) // For invoke service methods from MQ
public class TestProxyApplication {
  public static void main(String[] args) {
    new SpringApplication(TestProxyApplication.class).run(args);
  }
}
